package com.woniuxy.hrp;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
@MapperScan(basePackages = "com.woniuxy.hrp.mapper")
public class HrpApplication {

    public static void main(String[] args) {
        SpringApplication.run(HrpApplication.class, args);
    }
//    @Bean
//    public FilterRegistrationBean myFilterRegistrationBean() {
//        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(new OaCorsFilter());
//        //添加过滤路径
//        filterRegistrationBean.addUrlPatterns("/*");
//        //设置过滤器的顺序
//        filterRegistrationBean.setOrder(Integer.MIN_VALUE);
//
//        return filterRegistrationBean;
//    }
}

